<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>词多多代理商平台</title>
    <include file="Index:header"/>
    <script type="text/javascript">
        $(function(){
            $(".help-side dl dd:eq(0)").addClass('cur');
        })
        $(function(){
            $("#top #topcon .nav li:eq(4)").addClass('cur');
        }) 
    </script>
    <script src="__PUBLIC__/js/main.js" type="text/javascript" charset="UTF-8"></script>
</head>

<body>
    <include file="Index:top"/>
    <div id="main">
    <include file="Setting:left"/>
        <div id="main_right" class="container">
            <div class="title">搜索引擎设置</div>
            <div id="infotab" class="container mt10">
                <ul class="tb cl">
                        <li class="a">
                            <a href="{:U('index')}">搜索引擎设置</a>
                        </li>
                        <li>
                            <a href="{:U('setting_bili')}">排名比例设置</a>
                        </li>
                </ul>
                <div id="proxyinfo">
                    <form name="form1" id="form1" class="form" showOnMouseOver="false">
                        <div class="p30" style="padding-top:10px;">
                            <table cellpadding=5 class="tableStyle mt30 ml70" formMode="line" failAlert="表单填写不正确，请按要求填写！">
                                <tr>
                                    <td align="right">
                                        <img src="__PUBLIC__/images/yq_baidu.gif"/>&nbsp;&nbsp;
                                        <font color="red">*</font>
                                    </td>
                                    <td>
                                        <input name="bai" type="text" class="validate[required,custom[onlyNumber],length[1,3] input" id="bai" style="width:100px;" placeholder="{$baidu}" value="{$baidu}"/>&nbsp;&nbsp;%
                                    </td>
                                    <td>
                                        <div class="validation_info"></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <img src="__PUBLIC__/images/yq_qh.gif"/>&nbsp;&nbsp;
                                        <font color="red">*</font>
                                    </td>
                                    <td>
                                        <input name="qi" type="text" class="validate[required,custom[onlyNumber],length[1,3] input" id="qi" style="width:100px;" placeholder="{$qihoo}" value="{$qihoo}" />&nbsp;&nbsp;%
                                    </td>
                                    <td>
                                        <div class="validation_info"></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <img src="__PUBLIC__/images/yq_soso.gif"/>&nbsp;&nbsp;
                                        <font color="red">*</font>
                                    </td>
                                    <td>
                                        <input name="so" type="text" class="validate[required,custom[onlyNumber],length[1,3] input" id="so" style="width:100px;" placeholder="{$soso}" value="{$soso}" />&nbsp;&nbsp;%
                                    </td>
                                    <td>
                                        <div class="validation_info"></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <img src="__PUBLIC__/images/yq_sogou.gif"/>&nbsp;&nbsp;
                                        <font color="red">*</font>
                                    </td>
                                    <td>
                                        <input name="gou" type="text" class="validate[required,custom[onlyNumber],length[1,3] input" id="gou" style="width:100px;" placeholder="{$sogou}" value="{$sogou}" />&nbsp;&nbsp;%
                                    </td>
                                    <td>
                                        <div class="validation_info"></div>
                                    </td>
                                </tr>
                                <tr style="height:60px;text-align:center">
                                    <td></td>
                                    <td>
                                        <input class="button green" type="button" name="button" id="button" value="提&nbsp;&nbsp;交" onclick="check();"/>
                                    </td>
                                    <td></td>
                                </tr>
                            </table>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <include file="Index:footer"/>
</body>
<script type="text/javascript">

function check(){
    var bai = $("#bai").val();
    var qi = $("#qi").val();
    var so = $("#so").val();
    var gou = $("#gou").val();
    
    var bd_nan = parseInt(bai);
    var qh_nan = parseInt(qi);
    var ss_nan = parseInt(so);
    var sg_nan = parseInt(gou);
    var sum = bd_nan+qh_nan+ss_nan+sg_nan;

    if(sum!=100){
        ZENG.msgbox.show('请正确填写表单选项', 5, 3000);
        return false;
    }

    validateForm('#form1','__URL__/yq_save');
    }
</script>
</html>